function overloading - définition. Qu'est-ce que function overloading
DICLIB.COM
Outils linguistiques IA
Entrez un mot ou une phrase dans n'importe quelle langue 👆
Langue:     

Traduction et analyse des mots par intelligence artificielle

Sur cette page, vous pouvez obtenir une analyse détaillée d'un mot ou d'une phrase, réalisée à l'aide de la meilleure technologie d'intelligence artificielle à ce jour:

  • comment le mot est utilisé
  • fréquence d'utilisation
  • il est utilisé plus souvent dans le discours oral ou écrit
  • options de traduction de mots
  • exemples d'utilisation (plusieurs phrases avec traduction)
  • étymologie

Qu'est-ce (qui) est function overloading - définition

IN COMPUTER PROGRAMMING, CREATION OF MULTIPLE FUNCTION IMPLEMENTATIONS WITH THE SAME NAME
Constructor overloading; Overloaded function; Overload (programming); Overload resolution; Method overloading; Method overload

Overloading         
WIKIMEDIA DISAMBIGUATION PAGE
Overloading (disambiguation)
·p.pr. & ·vb.n. of Overload.
overloading         
WIKIMEDIA DISAMBIGUATION PAGE
Overloading (disambiguation)
<language> (Or "Operator overloading"). Use of a single symbol to represent operators with different argument types, e.g. "-", used either, as a monadic operator to negate an expression, or as a dyadic operator to return the difference between two expressions. Another example is "+" used to add either integers or floating-point numbers. Overloading is also known as ad-hoc polymorphism. User-defined operator overloading is provided by several modern programming languages, e.g. C++'s class system and the functional programming language Haskell's {type class}es. (1995-04-30)
Function (mathematics)         
  • A binary operation is a typical example of a bivariate function which assigns to each pair <math>(x, y)</math> the result <math>x\circ y</math>.
  • A function that associates any of the four colored shapes to its color.
  • Together, the two square roots of all nonnegative real numbers form a single smooth curve.
  • Graph of a linear function
  • The function mapping each year to its US motor vehicle death count, shown as a [[line chart]]
  • The same function, shown as a bar chart
  • Graph of a polynomial function, here a quadratic function.
  • Graph of two trigonometric functions: [[sine]] and [[cosine]].
  • right
ASSOCIATION OF A SINGLE OUTPUT TO EACH INPUT
Mathematical Function; Mathematical function; Function specification (mathematics); Mathematical functions; Empty function; Function (math); Ambiguous function; Function (set theory); Function (Mathematics); Functions (mathematics); Domain and range; Functional relationship; G(x); H(x); Function notation; Output (mathematics); Ƒ(x); Overriding (mathematics); Overriding union; F of x; Function of x; Bivariate function; Functional notation; Function of several variables; Y=f(x); ⁡; Draft:The Repeating Fractional Function; Image (set theory); Mutivariate function; Draft:Specifying a function; Function (maths); Functions (math); Functions (maths); F(x); Empty map; Function evaluation
In mathematics, a function from a set to a set assigns to each element of exactly one element of .; the words map, mapping, transformation, correspondence, and operator are often used synonymously.

Wikipédia

Function overloading

In some programming languages, function overloading or method overloading is the ability to create multiple functions of the same name with different implementations. Calls to an overloaded function will run a specific implementation of that function appropriate to the context of the call, allowing one function call to perform different tasks depending on context.

For example, doTask() and doTask(object o) are overloaded functions. To call the latter, an object must be passed as a parameter, whereas the former does not require a parameter, and is called with an empty parameter field. A common error would be to assign a default value to the object in the second function, which would result in an ambiguous call error, as the compiler wouldn't know which of the two methods to use.

Another example is a Print(object o) function that executes different actions based on whether it's printing text or photos. The two different functions may be overloaded as Print(text_object T); Print(image_object P). If we write the overloaded print functions for all objects our program will "print", we never have to worry about the type of the object, and the correct function call again, the call is always: Print(something).